package cn.ghostman.app.fragment;

import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import cn.ghostman.app.base.BasePager;

/**
 * @author 周朋波
 * @since 2017-04-19
 */
public class ReplaceFragment extends Fragment {
    private BasePager basePager;

    public ReplaceFragment(BasePager basePager) {
        this.basePager = basePager;
    }

    @Nullable
    @Override
    public View onCreateView(LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        //return super.onCreateView(inflater, container, savedInstanceState);

        return this.basePager == null ? null : this.basePager.rootView;
    }
}
